﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
  public  class 产品安装确认表 : TableBase
    {
        public 产品安装确认表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string recordElement)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            RecordElement = recordElement;
        }
        public override string FormName { get; protected set; } = "产品安装确认表";

        #region A10_检查项目
        public override string RecordElement_DisplayName { get; protected set; } = "检查项目";
        public override bool RecordElement_Show { get; protected set; } = true;
        #endregion
        /// <summary>
        /// 设计要求
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="processorDemand"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public RecordRequirementsEntity SetRecordRequirements(RecordRequirementsEntity entity, string processorDemand,string remarks)
        {
            entity.SetProcessorDemand(processorDemand, "检查情况", false, true, 0);

            entity.SetRemarks(remarks, "备注",false,true,0);

            return entity;
        }
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="measuredActual"></param>
        /// <returns></returns>
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string measuredActual)
        {
            entity.SetMeasuredActual(measuredActual, "检查结果", true, true, 0);
            return entity;
        }


    }
}
